package com.example.mvpdemo.model;

import android.os.Handler;
import android.os.Looper;


public class MainModel implements IModel{
    @Override
    public void login(final String username, String password, final Callback callback){
        new Handler(Looper.getMainLooper()).postDelayed(new Runnable() {
            @Override
            public void run() {
                callback.onSuccess(new User(1,"lance"));
            }
        },2000);
    }
}
